import request from '@/utils/request'

// 查询员工座位表列表
export function listUserseat(query) {
  return request({
    url: '/personnel/userseat/list',
    method: 'get',
    params: query
  })
}

// 查询员工座位表详细
export function getUserseat(id) {
  return request({
    url: '/personnel/userseat/' + id,
    method: 'get'
  })
}

// 新增员工座位表
export function addUserseat(data) {
  return request({
    url: '/personnel/userseat',
    method: 'post',
    data: data
  })
}

// 修改员工座位表
export function updateUserseat(data) {
  return request({
    url: '/personnel/userseat',
    method: 'put',
    data: data
  })
}

// 删除员工座位表
export function delUserseat(id) {
  return request({
    url: '/personnel/userseat/' + id,
    method: 'delete'
  })
}
